
===========================================================================
Sample selection for the analysis reported in main text in 
"Labor Market Participation, Marriage and Individual Welfare" 
by Laurens Cherhcye, Bram De Rock and Khushboo Surana. 
===========================================================================

* Uses the raw data file from the 2019 family file. This must be downloaded in its original form from the PSID website (https://psidonline.isr.umich.edu/) using the '2019 Main Study Family Files'. Note that this dataset contains more than 5,000 variables, so before opening it in Stata, the replicator must increase the maximum number of variables allowed in Stata using the following command: set maxvar 32000.

* Data_cleaning.do' is the Stata do-file used to obtain the sample of households selected for the analysis in the main text. It takes the 'FAM2019ER.dta' dataset as input and produces the 'PSID2019.dta' and 'PSID2019.xlsx' files as outputs. We then import 'PSID2019.xlsx' into MATLAB, rename it, and save it as 'Data.mat', which is used in all identification exercises.